GBML manual / 3D

view3d_turn

Turns the camera left by that many degrees (negative turns right).

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_turn(degrees)

Arguments

NameType
degreesreal

Returns

Nothing.

Description

Turns the camera left by degrees (a negative number turns right). It is counter-clockwise like every angle in this manual.

Call it once a frame with the turning speed you want, in degrees per frame. 3 is a comfortable turn.

Example

if (action_held(left)) { view3d_turn(3); }
if (action_held(right)) { view3d_turn(-3); }

Left turns the view to the left, right turns it to the right.

On the GBA

Counter-clockwise like every angle: a positive number turns to the left. Call it once a frame with the turning speed you want.

See also: 3D viewview3d_moveview3d_cameraview3d_angle